import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { SysRegion } from './types';

// 查询部门列表
export const getRegion = (code: string | number | undefined): AxiosPromise<SysRegion> => {
  return request({
    url: '/system/region/select',
    method: 'get',
    params: { code: code }
  });
};
